'''
@Project ：my_python_project 
@File    ：作业2.py
@IDE     ：PyCharm 
@Author  ：xionglinhui
@Date    ：2024/6/13 上午8:59 
'''

#2. 求1-100的所有数的和

count = 1
sum = 0

while count <=100:
    sum = sum + count
    count += 1

print("1~100所有数之和为{0}, count={1}".format(sum,count))
